import requests
import json


url = 'https://dc.3.cn/category/get?&callback=getCategoryCallback'
response = requests.get(url)
# response.encoding = response.apparent_encoding
print(response.status_code)
# print(response.text)

def hanshu2(neirong2):
    """判断一个unicode是否是汉字"""
    if neirong2 >= u'\u4e00' and neirong2 <= u'\u9fa5':
        return True
    else:
        return False
def hanshu1(neirong1):
    neirong1_str = ''
    for i in neirong1:
        if hanshu2(i):
            neirong1_str = neirong1_str+i
    return neirong1_str


data = response.text.strip("getCategoryCallback(").strip(")")
data = json.loads(data)
for i in data["data"]:
    for j in i['s']:
        for k in j["s"]:
            n = (k['n'])
            n = hanshu1(n)
            print(n)




#0228200107段宇

